package com.baidu.shop.base;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @ClassName: Result
 * @Author: User
 * @date: 2020.08.27 19:32
 * @version: 1.0
 */
@Data
@NoArgsConstructor
public class Result<T> {
    private Integer code;//返回码

    private String message;//返回消息

    private T data;//返回数据

    public Result(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = (T) data;
    }
}
